|
Kameleon-Plus
0.3.2
|
TODO: brief description of BATSRUS class. More...
#include <ccmc/BATSRUS.h>


Public Member Functions | |
| BATSRUS () | |
| long | open (const std::string &filename) |
| Opens a file. | |
| Interpolator * | createNewInterpolator () |
| Returns an Interpolator object for the currently opened file. | |
| const std::vector< std::string > | getLoadedVariables () |
| Returns the list of variables that have been loaded into memory, using the loadVariable or loadVectorVariable methods. | |
| virtual | ~BATSRUS () |
Public Member Functions inherited from ccmc::Model | |
| Model () | |
| void | setModelName (std::string modelName) |
| Sets the model name to modelName. | |
| std::string | getModelName () |
| Returns the modelName of the currently selected file. | |
| long | loadVariable (const std::string &variable) |
| Load a variable into memory. | |
| long | unloadVariable (const std::string &variable) |
| Unload a variable from memory. This will return FileReader::OK if the variable is removed from memory, and FileReader::VARIABLE_NOT_IN_MEMORY if the variable was not already in memory. | |
| long | loadVariableInt (const std::string &variable) |
| Loads a variable into memory. | |
| std::vector< float > * | getVariableFromMapRW (const std::string &variable) |
| Returns a pointer to the entry in the variableData map containing the variable data. | |
| std::vector< int > * | getIntVariableFromMapRW (const std::string &variable) |
| Returns a pointer to the entry in the variableDataInt map containing the variable data. | |
| const std::vector< float > *const | getVariableFromMap (const std::string &variable) |
| Returns a const pointer to the entry in the variableData map containing the variable data. | |
| const std::vector< int > *const | getIntVariableFromMap (const std::string &variable) |
| Returns a const pointer to the entry in the variableDataInt map containing the variable data. | |
| void | addFloatVariableToMap (const std::string &variable, std::vector< float > *variableData) |
| const std::vector< float > *const | getVariableFromMap (long variable_id) |
| Returns a const pointer to the entry in the variableDataByID map containing the variable data. | |
| const std::vector< int > *const | getIntVariableFromMap (long variable_id) |
| Returns a const pointer to the entry in the variableDataIntByID map containing the variable data. | |
| std::vector< float > * | getVariableFromMapRW (long variable_id) |
| Returns a pointer to the entry in the variableDataByID map containing the variable data. | |
| std::vector< int > * | getIntVariableFromMapRW (long variable_id) |
| Returns a pointer to the entry in the variableDataIntByID map containing the variable data. | |
| void | setMissingValue (float missingValue) |
| Sets the missing value to use when no valid data exists. | |
| float | getMissingValue () |
| Returns the missing value that will be returned when no valid data exists. | |
| float | getConversionFactorToSI (const std::string &variable) |
| Returns the conversion factor needed to convert the interpolated value to SI units. | |
| std::string | getNativeUnit (const std::string &variable) |
| Fetches the native units of the variable as stored in the file. | |
| std::string | getSIUnit (const std::string &variable) |
| Returns the SI units of the specified variable. | |
| int | getProgress () |
| int | getBusyStatus () |
| long | close () |
| Closes the currently selected file. | |
| virtual | ~Model () |
Public Member Functions inherited from ccmc::GeneralFileReader | |
| GeneralFileReader () | |
| long | open (const std::string &filename) |
| std::vector< float > * | getVariable (const std::string &variable) |
| std::vector< float > * | getVariable (long variableID) |
| std::vector< float > * | getVariable (const std::string &variable, long startIndex, long count) |
| std::vector< float > * | getVariable (long variableID, long startIndex, long count) |
| float | getVariableAtIndex (const std::string &variable, long index) |
| float | getVariableAtIndex (long variable_id, long index) |
| std::vector< int > * | getVariableInt (const std::string &variable) |
| int | getVariableIntAtIndex (const std::string &variable, long index) |
| int | getNumberOfGlobalAttributes () |
| int | getNumberOfVariables () |
| int | getNumberOfVariableAttributes () |
| long | getNumberOfRecords (const std::string &variable) |
| long | getNumberOfRecords (long variable_id) |
| long | getVariableID (const std::string &variable) |
| std::string | getVariableName (long variable_id) |
| Attribute | getGlobalAttribute (long i) |
| std::string | getGlobalAttributeName (long attribute_id) |
| std::string | getVariableAttributeName (long attribute_id) |
| Attribute | getGlobalAttribute (const std::string &attribute) |
| Attribute | getVariableAttribute (const std::string &variable, const std::string &attribute) |
| std::vector< std::string > | getVariableAttributeNames () |
| bool | doesAttributeExist (const std::string &attribute) |
| bool | doesVariableExist (const std::string &variable) |
| long | close () |
| const std::string & | getCurrentFilename () |
| ~GeneralFileReader () | |
Protected Member Functions | |
| void | initializeConversionFactorsToSI () |
| Initializes the conversionFactorsToSI map. | |
| void | initializeSIUnits () |
| Initializes the variableSIUnits map. | |
Protected Member Functions inherited from ccmc::Model | |
| void | setBusyStatus (int busyStatus) |
Protected Member Functions inherited from ccmc::GeneralFileReader | |
| void | initializeGlobalAttributes () |
| void | initializeVariableAttributes () |
| void | initializeVariableIDs () |
| void | initializeVariableNames () |
Friends | |
| template<typename T > | |
| int | binary_search (const std::vector< T > &vec, unsigned int start, unsigned int end, const T &key) |
Additional Inherited Members | |
Static Public Attributes inherited from ccmc::Model | |
| static const int | BUSY =1 |
| static const int | OK =2 |
Protected Types inherited from ccmc::Model | |
| typedef boost::unordered_map < std::string, std::vector < float > * > | mapStringFloat |
| typedef boost::unordered_map < std::string, std::vector < int > * > | mapStringInt |
| typedef boost::unordered_map < long, std::vector< float > * > | mapLongFloat |
| typedef boost::unordered_map < long, std::vector< int > * > | mapLongInt |
Protected Attributes inherited from ccmc::Model | |
| std::string | modelName |
| boost::unordered_map < std::string, float > | conversionFactorsToSI |
| boost::unordered_map < std::string, std::string > | variableSIUnits |
| boost::unordered_map < std::string, std::vector < float > * > | variableData |
| boost::unordered_map < std::string, std::vector < int > * > | variableDataInt |
| boost::unordered_map< long, std::vector< float > * > | variableDataByID |
| boost::unordered_map< long, std::vector< int > * > | variableDataIntByID |
| std::string | units_ |
| float | missingValue |
| int | busyStatus |
| int | progress |
| int | variablesAdded |
| ccmc::BATSRUS::BATSRUS | ( | ) |
Default constructor
|
virtual |
Destructor
|
virtual |
Returns an Interpolator object for the currently opened file.
This returns an Interpolator object that contains all the necessary local variables required to interpolate independent of any other Interpolator object. The pointer must be deleted from the calling program.
Implements ccmc::Model.
|
virtual |
Returns the list of variables that have been loaded into memory, using the loadVariable or loadVectorVariable methods.
Reimplemented from ccmc::Model.

|
protectedvirtual |
Initializes the conversionFactorsToSI map.
These factors are used to convert interpolated values to SI units.
TODO: fix these conversion factors
Implements ccmc::Model.
|
protectedvirtual |
Initializes the variableSIUnits map.
Implements ccmc::Model.
|
virtual |
Opens a file.
Opens a file and performs any necessary initialization required to work with the data.
| filename |
Implements ccmc::Model.

|
friend |
1.8.3